#include<stdio.h>
#include<stdlib.h>
#include<pthread.h>

static int x = 0;

void* thread(void *arg){
  printf("inner thread:%d\n", x);
}


int main(){
  pthread_t th;
  int ret;

  ret = pthread_create(&th, NULL, thread, NULL);
  if(ret != 0){
    printf("thread create error\n");
    exit(1);
  }
  pthread_join(th, NULL);
  return 0;
}
